import pygame

pygame.init()
pygame.mixer.init()
screen_width = 1280
screen_height = 720
color_gary = (210,210,210)
color_whilt = (255,255,255)
color_blue = (0,0,255)
block_size = 40

kt = pygame.mixer.music.load("res/kait.mp3")
pygame.mixer.music.play()


#方向字典
DIRECTION_DICT = {
    pygame.K_UP:(0,-block_size),  #上
    pygame.K_RIGHT:(block_size,0),  #右
    pygame.K_DOWN:(0,block_size),  #下
    pygame.K_LEFT:(-block_size,0),  #左
}
head_dict = {
            pygame.K_UP:90,
            pygame.K_RIGHT:0,
            pygame.K_DOWN:90,
            pygame.K_LEFT:0
}